package org.filetransfer.file_transfer_java_backend.model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@Schema(description = "服务文件信息")
public class ServiceFileInfoModel {
    public ServiceFileInfoModel(Long fileCount, Long totalSize, Long totalDownloadCount, Long totalDownloadSize) {
        this.fileCount = fileCount == null ? 0 : fileCount;
        this.totalSize = totalSize == null ? 0 : totalSize;
        this.totalDownloadCount = totalDownloadCount == null ? 0 : totalDownloadCount;
        this.totalDownloadSize = totalDownloadSize == null ? 0 : totalDownloadSize;
    }
    @Schema(description = "文件数量")
    private long fileCount = 0L;
    @Schema(description = "所有文件总大小")
    private long totalSize = 0L;
    @Schema(description = "总下载次数")
    private long totalDownloadCount = 0L;
    @Schema(description = "总下载总大小")
    private long totalDownloadSize = 0L;
}
